/**
 * $Revision: 1.1 $
 * $Author: administrator $
 * $Date: 2009/03/11 14:29:41 $
 *
 * Author: Geln Yang
 * Date  : Mar 11, 2009 10:18:16 PM
 *
 */
package org.geln.web.container;

/**
 * @author Geln Yang
 * @version 1.0
 */
public class Application {

	private Container container;

	private static final Application instance = new Application();

	private Application() {
	}

	public static Application getInstance() {
		return instance;
	}

	public static Object getComponent(Object key) throws ComponentNotFoundException {
		return instance.getContainer().getComponent(key);
	}

	public Container getContainer() {
		return container;
	}

	public void setContainer(Container container) {
		this.container = container;
	}

}
